//
//  GQProfileMyCollectionController.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/27.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQProfileMyCollectionController.h"
#import "GQProfileMyCollectionCell.h"
#import "GQInfomationDetailController.h"

@interface GQProfileMyCollectionController ()

@end

@implementation GQProfileMyCollectionController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView registerClass:[GQProfileMyCollectionCell class] forCellReuseIdentifier:kFlag];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithOriginalName:@"distribute_back"] style:UIBarButtonItemStylePlain target:self action:@selector(backToPre)];
}

- (void)backToPre
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    GQProfileMyCollectionCell *cell = [tableView dequeueReusableCellWithIdentifier:kFlag forIndexPath:indexPath];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 80;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    GQInfomationDetailController *GQIDC = [[GQInfomationDetailController alloc] init];
    [self.navigationController pushViewController:GQIDC animated:YES];
}

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
    
}

@end
